<template>
  <div class="">
    登录页面
    <el-button @click="handlelogin">一键登录</el-button>
  </div>
</template>

<script setup  lang="ts">
import {useStore}  from 'vuex'
const store = useStore()
 const handlelogin = ()=>{
    console.log('dian')
    store.dispatch('user/login',{
        username:'admin',
        password:'admin'
    })
 }
 
</script>

<style  scoped   lang="less">

</style>
